package com.flyco.modules.cms.service;

import com.flyco.modules.cms.entity.CmsArticleV2;
import com.baomidou.mybatisplus.extension.service.IService;
import com.flyco.modules.cms.entity.CmsArticleV2Comment;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 文章表
 * @Author: flyco
 * @Date:   2020-07-16
 * @Version: V1.0
 */
public interface ICmsArticleV2Service extends IService<CmsArticleV2> {
    /**
     * 添加一对多
     *
     */
    public void saveMain(CmsArticleV2 cmsArticleV2, List<CmsArticleV2Comment> cmsArticleV2CommentList) ;

    /**
     * 修改一对多
     *
     */
    public void updateMain(CmsArticleV2 cmsArticleV2,List<CmsArticleV2Comment> cmsArticleV2CommentList);

    /**
     * 删除一对多
     */
    public void delMain (Long id);

    /**
     * 批量删除一对多
     */
    public void delBatchMain (Collection<? extends Serializable> idList);
}
